/**
 * 
 */
package com.net.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.net.dao.StudentDao;
import com.net.domain.Student;

/**
 * @author Dinesh
 *
 */
public class StudentServiceImpl implements StudentService {
	
	
	private StudentDao studentDao;

	/* (non-Javadoc)
	 * @see com.net.service.StudentService#getAllStudents()
	 */
	@Override
	public List<Student> getAllStudents() {
		
		// TODO Auto-generated method stub
		return studentDao.getAllStudents();
	}
	
	@Override
	public Student getStudent(int referenceId) {
		
		return studentDao.getStudent(referenceId);
	}
	
	@Override
	public boolean updateStudentInfo(Student student) {

		return studentDao.updateInfo(student);
	}

	public StudentDao getStudentDao() {
		return studentDao;
	}

	@Autowired
	public void setStudentDao(StudentDao studentDao) {
		this.studentDao = studentDao;
	}
}
